﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Public.master" AutoEventWireup="true" CodeFile="Trailer.aspx.cs" Inherits="Resources_Trailer" Title="Untitled Page" %>
<%@ Import Namespace="BCGC.BLL.Helper" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" Runat="Server">
   <div class="section-head">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td class="sub-head-left">&nbsp;</td>
                <td>Trailers</td>
                <td class="sub-head-right" align="right">&nbsp;</td>
            </tr>
        </table>
    </div>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="rounded_left_top"></td>
            <td class="rounded_top"></td>
            <td class="rounded_right_top"></td>
        </tr>
        <tr>
            <td class="rounded_left"></td>
            <td>
               <asp:DataList ID="dtlTrailers" runat="server" OnItemDataBound="DataList_ItemDataBound" HeaderStyle-Font-Bold="true" 
                    CellPadding="0" CellSpacing="0" Width="100%" RepeatColumns="3" RepeatDirection="Horizontal" RepeatLayout="Table" 
                    UseAccessibleHeader="true">
                    <ItemStyle VerticalAlign="Top" />
                    <ItemTemplate>
                        <div>
                            <div class="wallpaper_list">
                                <asp:HyperLink ID="hklThumbnail" runat="server" ImageUrl='<%# Eval("ThumbnailImageUrl") %>' 
                                    NavigateUrl='<%# String.Format("{0}?id={1}",CustomSiteMap.GameTrailerDetail, Eval("TrailerId")) %>' />
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </td>
            <td class="rounded_right"></td>
        </tr>
        <tr>
            <td class="rounded_left_bottom"></td>
            <td class="rounded_bottom"></td>
            <td class="rounded_right_bottom"></td>
        </tr>
    </table>
    <div class="pager-area">
        <asp:Repeater ID="rptPager" runat="server" OnItemDataBound="Pager_DataBound">
            <ItemTemplate>
                <asp:LinkButton ID="lkbPageIndex" runat="server" CssClass="page-index" Width="24px" Height="24px"
                    Text='<%# Container.DataItem.ToString() %>' CommandName="PagingCommand"
                    CommandArgument='<%# Container.DataItem %>'
                    OnCommand="Page_Change"></asp:LinkButton>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" Runat="Server">
</asp:Content>

